package com.xtm.exercise.base.B14spring.initStart.startupIncomplete;

import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;

@Component
public class PostConstructDemo {

    // spring 将 PostConstructDemo 对象创建完成以后，执行这个方法
    @PostConstruct
    public void test(){

        System.out.println("PostConstruct执行业务");

    }
}
